package testJdk.generic;

import java.util.ArrayList;
import java.util.List;

/**
 * @ClassName : learn_jdk.generic.ConllectionTest
 * @Description : 类描述
 * Created by cyd on 2021-03-16 23:05:59
 */
public class CollectionTest {
    public static void main(String[] args) {
        List arrayList = new ArrayList();
        arrayList.add("aaaa");
        arrayList.add(100);

        for (int i = 0; i < arrayList.size(); i++) {
            String item = (String) arrayList.get(i);
            System.out.println("泛型测试:item = " + item);
        }
    }

}
